<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>商品</title>
	<script type='text/javascript' src='http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/yc/hd_group_stu/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/yc/hd_group_stu/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/yc/hd_group_stu/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/yc/hd_group_stu/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
HOST = '<?php echo $GLOBALS['user']['HOST'];?>';
ROOT = '<?php echo $GLOBALS['user']['ROOT'];?>';
WEB = '<?php echo $GLOBALS['user']['WEB'];?>';
URL = '<?php echo $GLOBALS['user']['URL'];?>';
HDPHP = '<?php echo $GLOBALS['user']['HDPHP'];?>';
HDPHPDATA = '<?php echo $GLOBALS['user']['HDPHPDATA'];?>';
HDPHPTPL = '<?php echo $GLOBALS['user']['HDPHPTPL'];?>';
HDPHPEXTEND = '<?php echo $GLOBALS['user']['HDPHPEXTEND'];?>';
APP = '<?php echo $GLOBALS['user']['APP'];?>';
CONTROL = '<?php echo $GLOBALS['user']['CONTROL'];?>';
METH = '<?php echo $GLOBALS['user']['METH'];?>';
GROUP = '<?php echo $GLOBALS['user']['GROUP'];?>';
TPL = '<?php echo $GLOBALS['user']['TPL'];?>';
CONTROLTPL = '<?php echo $GLOBALS['user']['CONTROLTPL'];?>';
STATIC = '<?php echo $GLOBALS['user']['STATIC'];?>';
PUBLIC = '<?php echo $GLOBALS['user']['PUBLIC'];?>';
HISTORY = '<?php echo $GLOBALS['user']['HISTORY'];?>';
HTTPREFERER = '<?php echo $GLOBALS['user']['HTTPREFERER'];?>';
</script>
	<link href='http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/css/bootstrap.min.css' rel='stylesheet' media='screen'>
<script src='http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/js/bootstrap.min.js'></script>
                <!--[if lte IE 6]>
                <link rel="stylesheet" type="text/css" href="http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/ie6/css/bootstrap-ie6.css">
                <![endif]-->
                <!--[if lt IE 9]>
                <script src="http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/js/html5shiv.min.js"></script>
                <script src="http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/js/respond.min.js"></script>
                <![endif]-->
	<link type="text/css" rel="stylesheet" href="http://localhost/yc/hd_group_stu/./Hdgroup/Hdgroup/Admin/Tpl/Public/Css/public.css"/>
	<script type="text/javascript" src="http://localhost/yc/hd_group_stu/./Hdgroup/Hdgroup/Admin/Tpl/Public/Js/public.js"></script>
</head>
<body>
	
	<form action="" class ='hd-form' name='form' method="post">
	<div class="wrap">
	<div class="title-header"><?php echo $shopname;?></div>
	<div class="menu_list">
		<ul>
			<li><a href="javascript:;"  class="action"> 商品列表 </a></li>
			<li><a href="<?php echo U('Goods/add',array('shopid'=>$_GET['shopid']));?>"> 添加商品</a></li>
			<li><a href="<?php echo U('shop/index');?>">商铺列表 </a></li>
		
		</ul>
	</div>
	<table class='table table-striped table-bordered '>
	<tr>
		<td  width="8%"  align="center"><input type="checkbox"  class='checkall' /></td>
		<td width="10%">地区</td>
		<td>商品标题</td>
		<td>商品副标题</td>
		<td width="8%">商品价格</td>
		<td width="8%">原价</td>
		<td width="10%">分类</td>
		<td width="10%">操作</td>
	</tr>
	<?php if($goods){?>
	<?php if(is_array($goods)):?><?php  foreach($goods as $v){ ?>
	<tr>
		<td align="center"><input type="checkbox" name='cid[<?php echo $v['gid'];?>]' value="<?php echo $v['gid'];?>" /></td>
		<td><?php echo $v['lname'];?></td>
		<td><?php echo $v['main_title'];?></td>
		<td><?php echo $v['sub_title'];?></td>
		<td><?php echo $v['price'];?></td>
		<td><?php echo $v['old_price'];?></td>
		<td><?php echo $v['cname'];?></td>
		<td>
			<a href="<?php echo U('Goods/edit',array('gid'=>$v['gid']));?>">编辑</a> 
			<a href="javascript:;" onclick="var url='<?php echo U('Goods/del',array('gid'=>$v["gid"]));?>'; hd_confirm(' 确定删除吗？ ',function(){location.href=url})">删除</a>
		</td>
	</tr>
	<?php }?><?php endif;?>
	<tr>
		<td colspan="8" class='page'><?php echo $page;?></td>
	</tr>
	<?php  }else{ ?>
	<tr>
		<td colspan="8">没有找到符合的记录</td>
	</tr>
	<?php }?>

	</table>
	</div>
	<div class='position-bottom'>
		<input type="button" class='hd-cancel all' value='全选' />
		<input type="button" class='hd-cancel cancel' value='反选'/>
		<input type="button" class='hd-cancel sort' value='排序'/>
	</div>
	</form>
</body>
</html>